package com.whfc.base.dao;

import com.whfc.base.entity.AppWeatherTime;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AppWeatherTimeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AppWeatherTime record);

    int insertSelective(AppWeatherTime record);

    AppWeatherTime selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppWeatherTime record);

    int updateByPrimaryKey(AppWeatherTime record);

    /**
     * 查询项目的天气更新时间
     *
     * @param deptId
     * @return
     */
   AppWeatherTime selectByDeptId(@Param("deptId") Integer deptId);

    /**
     * 插入 or 更新
     *
     * @param record
     * @return
     */
    int insertOrUpdate(AppWeatherTime record);
}